//
// Created by jsjxsy on 2022/6/30.
//
#include <stdio.h>
#include <errno.h>
#include <strings.h>
extern int errno ;
int main(void) {
  FILE *fp;

  fp = fopen("file.txt", "r");
  if( fp == NULL )
  {
    fprintf(stderr, "Value of errno: %d\n", errno);
    fprintf(stderr, "Error opening file: %s\n", strerror(errno));
  }
  else
  {
    fclose(fp);
  }
  return 0;
}
